package com.valiscalc.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 大乐透实票数据
 * </p>
 *
 * @author vallis
 * @since 2020-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SuperLotto extends Model<SuperLotto> {

    private static final long serialVersionUID = 1L;

    /**
     * 票id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 前区
     */
    private String frontNum;

    /**
     * 后区
     */
    private String endNum;

    /**
     * 期号
     */
    private String ticketIssue;

    /**
     * 花费金额
     */
    private BigDecimal expendMoney;

    /**
     * 中奖金额
     */
    private BigDecimal awardMoney;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer deleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
